<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/mytable/Bai_skill.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/mytable/Bai_skill.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: 'AI技能',
                name: 'mytable/Bai_skill',
                url: "/Bai_skill/",
                sortName: "skillid"
            });
            const editFormFields = ref({"skillid":"","skillname":"","state":"","customid":""});
            const editFormOptions = ref([[{"title":"百度技能序号","field":"skillid","type":"number"},
                               {"title":"技能名称","field":"skillname"}],
                              [{"title":"状态（1可用）","field":"state","type":"number"},
                               {"title":"客户编码","field":"customid"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'id',title:'id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'skillid',title:'百度技能序号',type:'int',link:true,width:110,align:'left',sort:true},
                       {field:'skillname',title:'技能名称',type:'string',width:110,align:'left'},
                       {field:'state',title:'状态（1可用）',type:'int',width:110,align:'left'},
                       {field:'customid',title:'客户编码',type:'string',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
